package com.wg.net.handle;

import com.wg.net.peer.BasePeer;
import com.wg.net.operations.base.OperationRequest;

/**
 * 处理请求接口
 *
 * @author 少爷123
 */
public interface IHandleRequest {

    /**
     * 执行
     *
     * @param peer    peer
     * @param request 请求
     * @throws Exception 异常
     */
    void execute(BasePeer peer, OperationRequest request) throws Exception;
}
